// Source File Name:   MobageActivity.java

package com.sgame.android.ui;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import java.util.Iterator;
import java.util.Set;

public class SgameActivity extends Activity
{

    public SgameActivity()
    {
    }

    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        Activity root = null; //Mobage.currentActivity;
        Intent intent = new Intent(getIntent());
        if(root == null)
        {
            Intent bootable = getPackageManager().getLaunchIntentForPackage(getPackageName());
            intent.setComponent(bootable.getComponent());
        }
        else
        {
            intent.setClassName(root.getClass().getPackage().getName(), root.getClass().getName());
        }
        if(root != null)
            root.setIntent(intent);
        startActivity(intent);
        finish();
    }

    protected static final String TAG = "SgameActivity";
}
